package com.may.wind.dao;

import com.may.wind.entity.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserRoleRepository extends JpaRepository<UserRole, Long> {
    List<UserRole> findAllByUserId(long userId);

    void deleteAllByUserId(long userId);
}
